package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {
    void save(Course course);
    void update(Course course);
    void delete(Integer id);
    Course findById(Integer id);
    Course findByName(String name);
    List<Course> findAll();

}
